<?php

namespace App\Admin;

use Illuminate\Database\Eloquent\Model;

class Course extends Model
{
    protected $table = 'course';

    public function rel_lessions(){
        //查询一对多的连续剧
        return $this -> hasMany('App\Home\Lession','course_id','id') -> orderBy('id','desc');
    }

}
